<%@ page import="com.cn.domain.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

</head>
<body>
<div align="center">
  <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    User user = new User(username,password);
    if (user.getUsername().equals("admin") && user.getPassword().equals("123")){
      out.print("恭喜您，登录成功！");
    } else{
      out.print("请输入正确的用户名和密码！");
    }
  %>
  <br/><br/>
  <a href="index.jsp">返回</a>
</div>
</body>
</html>
